const Pet = require('../model/pet.model')

class PetService {
  async findAllPet() {
    return await Pet.findAll({
      attributes: ['id','name', 'cultivar', 'age', 'start', 'price', 'avatar'],
      limit: 5
    })
  }
  async findOnePet(id) {
    return await Pet.findAll({
      where: {
        id
      }
    })
  }
}


module.exports = new PetService()